package tt

import (
	"sync"
	"time"
)

var lock sync.Mutex
var a = 0
func MuTe( i int)  {

	lock.Lock()

	println(i)
	for{}

	lock.Unlock()
}

func MuTe2( i int)  {

	lock.Lock()

	println(i)

	lock.Unlock()
}

func CheckM()  {
	go MuTe(1)
	time.Sleep(time.Second)
	go MuTe2(2)
	for  {

	}
}